<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments::head(~{::title})">
		<meta charset="utf-8" />
		<title>归档</title>
		<script src="  https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js " type="text/javascript" charset="utf-8"></script>
		
		<link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">

			<link rel="stylesheet" href="../static/css/mi1.css">
	</head>
	<body>
		
		
		<nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small"  th:replace="_fragments::menu(4)">
			<div class="ui container">
			<div class="ui menu inverted secondary stackable">
				<h2 class="ui teal header item"><i class="home icon"></i>脏丽丽</h2>
				<a href="#" class="m-item m-mobile-hide item"><i class="mini idea icon"></i>首页</a>
				<a href="#" class="m-item m-mobile-hide item"><i class="mini idea icon"></i>分类</a>
				<a href="#" class="active m-item m-mobile-hide item"><i class="mini tags icon"></i>标签</a>
				<a href="#" class="m-item m-mobile-hide item"><i class="mini clone icon"></i>归档</a>
				<a href="#" class="m-item m-mobile-hide item"><i class="mini info icon"></i>关于我</a>
				<div class="right item m-mobile-hide">
					<div class = "ui icon transparent inverted input">
						<input type="text" placeholder="搜我吧" />
						<i class="search link icon"></i>
					</div>
				</div>
			</div>
			</div>
			<a href="#" class="ui black menu toggle icon button m-right-top m-mobile-show">
				<i class="sidebar icon"></i>
			</a>
		</nav>
		<!-- 中间内容 -->
		<div class="m-container-sm m-padded-tb-big">
			<!-- header -->
		    <div class="ui container">
				<div class="ui top attached padded segment">
					<div class="ui grid middle two column grid">
						 <div class="column">
							 <h3 class="ui teal header"> 
								归档
							 </h3>
						 </div>
						 <div class="right aligned column">
						 	共 <h3 class="ui orange header m-inline-block m-text-thin" th:text="${blogCount}">114</h3>篇博客
						 </div>
					</div>
				</div>
				<th:block th:each="item : ${archiveMap} ">
				<h2 class="ui header center aligned" th:text="${item.getKey()}"> 2017</h2>
				<div class="ui fluid vertical menu">
						<a href="#"  th:href="@{/blog/{id}(id=${blog.id})}" class="item"
						   th:each="blog : ${item.value}">
							<span >
								
								<i class="circle icon teal"></i> <span th:text="${blog.title}">关于刻意练习的清单 </span>
							<div class="ui teal basic left pointing label m-padded-tb-mini"   th:text="${#dates.format(blog.updateTime,'MMMdd')}">9月03</div>
							</span>
							<div class="ui orange basic left pointing label m-padded-tb-mini" th:text="${blog.flag}">原创</div>
							
						</a>

				</div>

				</th:block>


				
				
				</div>
		</div>
		<br />
		<br />
		<br />
		<footer class="ui inverted vertical segment m-padded-tb-massive" th:replace="_fragments::footer">
			<div class="ui center aligned  container">
			<div class="ui inverted divided grid stackable">
				<div class="three wide column">
					<div class="inverted ui link list">
					<div class="item">
						<img src="../static/img/小俊男.jpg" style="width:110px " alt="" class="ui rounded image">
						
					</div>
					</div>
				</div>
				<div class="three wide column">
					<div class="ui inverted link list">
						<h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
						<a href="#" class="item">用户登录</a>
						<a href="#" class="item">用户登录</a>
						<a href="#" class="item">用户登录</a>
					</div>
					
				</div>
				<div class="three wide column">
					<div class="ui inverted link list">
						<h4 class="ui inverted header m-text-thin m-text-spaced" >最新博客</h4>
						<a href="#" class="item">用户登录</a>
						<a href="#" class="item">用户登录</a>
						<a href="#" class="item">用户登录</a>
					</div>
					
				</div>
				<div class="seven wide column">
					<div class="ui inverted link list">
						<h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
						<p  class="m-text-thin m-text-spaced m-opacity-mini">这是脏丽丽的个人博客！里面有好多好玩的东西哟！</p>
					</div>
					
				</div>
				
			</div>
			<div class="ui inverted section divider"></div>
			<p class="m-text-thin m-text-spaced m-opacity-tiny">copy right 2019-2020</p>
			</div>
			
		</footer>
		<th:block th:replace="_fragments::script">

		</th:block>
		<script>
			$('.menu.toggle').click(function() {
				$('.m-item').toggleClass('m-mobile-hide');
			});
		</script>
	</body>
</html>
